import voice from '../utils/voice'
function planning(endAddressInfo) {
  let key = 'NMKBZ-SACK6-WFDSR-M7UUJ-Q7OYF-FQB6V';
  const referer = '船政文化旅游景区导航'; //调用插件的app的名称
  let endPoint = endAddressInfo;
  const themeColor = '#c23333'
  endPoint = JSON.stringify(endPoint);
  wx.navigateTo({
    url: 'plugin://routePlan/index?key=' +
      key +
      '&referer=' +
      referer +
      '&endPoint=' +
      endPoint + '&themeColor=' + themeColor ,
  });
  voice.wordYun(`前往${endAddressInfo.name}`)
  console.log('==endPoint---', endPoint);
}
export default {
  planning
}